package main 
import "fmt"

func main(){
	function1()
}

func function1() {
	fmt.Printf("In function1 at the top\n")
	// defer 
	function2()
	fmt.Printf("In function1 at the bottom!\n")
}

func function2(){
	fmt.Printf("Function2: Defferred until the end of the calling function!")
}